If passed file number, File returns a pointer to the file.
If passed file pointer, File returns the file number of the file.
If passed field pointer, File returns the file number of the field. This form is used with the first form of Field to get the file number and field number of a field by using only a field pointer.
The following example sets the FilePtr variable to a pointer to the third file:
FilePtr := File (3)
Passing FilePtr to the second form of File returns the number 3. For example, the following line sets FileNum to 3:
FileNum := File (FilePtr)
The following example sets the FileNum variable to the file number of [File3»]
FileNum := File (»[File3])
The following example sets the FileNum variable to the file number of the file to which the field named [File3]Field1 belongs: